Skip to content

add bypass header config option to maxmind_acl plugin#13160

Open
traeak wants to merge 5 commits into
apache:masterfrom
traeak:maxmind_bypass
Open

add bypass header config option to maxmind_acl plugin#13160
traeak wants to merge 5 commits into
apache:masterfrom
traeak:maxmind_bypass

Conversation

@traeak
Copy link
Copy Markdown
Contributor

@traeak traeak commented May 13, 2026

This adds support to use an optional header/value to bypass running this plugin in the TSRemapDoRemap stage.

maxmind config yaml looks like:

maxmind:
 bypass:
  header: "@BypassMe"
  value: someval

If this option is not provided then the plugin runs as normal in enforcing mode.
Exact header and value is required.

This comment was marked as outdated.

@zwoop
Copy link
Copy Markdown
Contributor

zwoop commented May 19, 2026

@traeak ping me when the Copilot issues has been addressed.

zwoop
zwoop previously approved these changes May 21, 2026
Copy link
Copy Markdown
Contributor

@zwoop zwoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One real comment here, and one nitpick. The question on the new function returning an unused bool is real, but if it's intended, you can leave it. Just reads oddly. The nitpick is up to you.

Approving, but feel free to make one or both of the raised questions.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Copilot AI review requested due to automatic review settings May 22, 2026 14:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Comment thread doc/admin-guide/plugins/maxmind_acl.en.rst
Comment thread doc/admin-guide/plugins/maxmind_acl.en.rst Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Comment thread plugins/experimental/maxmind_acl/mmdb.cc
Comment thread plugins/experimental/maxmind_acl/mmdb.cc Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 22, 2026 16:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment on lines +440 to +447
if (!bypassNode) {
Dbg(dbg_ctl, "No bypass set");
return;
}
if (bypassNode.IsNull()) {
Dbg(dbg_ctl, "bypass node is NULL");
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants